﻿@using Fierce.MvcExtend.Controls.Manage
@model Fierce.Entity.Basic.BasicUser

<form id="uform" method="post" class="document-form-example">
    <div class="document-row">
        <label class="document-label">用户名称</label>
        <input name="Name" class="easyui-textbox" data-options="required:true" value="@Model.Name" />
        <span class="document-info">用户的职责或姓名，或根据需要随意填写。</span>
    </div>
    <div class="document-row">
        <div class="thumbbox" style="width:88px;">
            <img height="88" src="/userfiles/head/@Model.Head" />
            <div class="thumbtextbtn">上传头像</div>
            <div class="thumbfilelist"></div>
        </div>
        <input type="hidden" id="img_dir" value="/head/" />
        <input type="hidden" id="img_width" value="88" />
        <input type="hidden" id="img_height" value="88" />
        <input type="hidden" id="img_file" name="Head" value="@(Model.Head)" />
    </div>
    <div class="document-row">
        <label class="document-label">登录账号</label>
        <input id="username" name="UserName" class="easyui-textbox" data-options="required:true,validType:'username'" value="@Model.UserName" />
        <span class="document-info">登录后台系统所使用的用户名。</span>
    </div>
    <div id="password" class="document-row">
        <label class="document-label">登录密码</label>
        <input name="PassWord" type="password" class="easyui-textbox" data-options="required:true,validType:'minLength[6]'" />
        <span class="document-info">用户的初始密码，请妥善保管。</span>
    </div>
    <div class="document-row">
        <label class="document-label">邮件地址</label>
        <input name="Mail" class="easyui-textbox" data-options="validType:'email'" value="@Model.Mail" />
        <span class="document-info">目前后台用户的唯一联系方式记录。</span>
    </div>
    <div class="document-row document-zero-bottom">
        <label class="document-label">描述信息</label>
        <input name="Remark" class="easyui-textbox" data-options="multiline:true,height:80" value="@Model.Remark" />
    </div>
    <input type="hidden" name="ID" value="@Model.ID" />
    <input name="Tag" type="hidden" value="@Model.Tag" />
    <input name="IsSuper" type="hidden" value="@Model.IsSuper.ToString()" />
    <input name="IsEnabled" type="hidden" value="@Model.IsEnabled.ToString()" />
    <input type="hidden" name="InsertTime" value="@Model.InsertTime" />
</form>